﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x0200029A RID: 666
	public class TConstantList : TParseTreeNodeList
	{
		// Token: 0x06001595 RID: 5525 RVA: 0x003263FB File Offset: 0x003245FB
		public virtual void addConstant(TConstant def)
		{
			base.addElement(def);
		}

		// Token: 0x06001596 RID: 5526 RVA: 0x00326404 File Offset: 0x00324604
		public virtual TConstant getConstant(int position)
		{
			if (position < base.size())
			{
				return (TConstant)this.elementAt(position);
			}
			return null;
		}

		// Token: 0x06001597 RID: 5527 RVA: 0x0032641D File Offset: 0x0032461D
		internal override void addParseTreeNode(object arg1)
		{
			this.addConstant((TConstant)arg1);
		}

		// Token: 0x06001598 RID: 5528 RVA: 0x0032642B File Offset: 0x0032462B
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06001599 RID: 5529 RVA: 0x0032643C File Offset: 0x0032463C
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			for (int i = 0; i < base.size(); i++)
			{
				this.getConstant(i).acceptChildren(v);
			}
			v.postVisit(this);
		}
	}
}
